<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	function myFunction(str) {
		var r = confirm("是否删除此学生！");
		if (r == true) {
			$("#id2").load('deletexs?id=' + str);
		} else {
			return false;
		}
	}
	$(function(){
		$('#id1,#id2').dialog({
			autoOpen:false,
			modal:true
		})
	});
	function  xueshengxg(id){
		$('#id2').load('editxs?id='+id);
		$('#id2').dialog('open');
	}
	$('#a1').click(function(){
		$('#id2').load('editxs?bjid='+$('#bjid').val());
		$('#id2').dialog('open');
	})
	function  changexs(bjid){
		$('#b1').load('changexs?bjid='+bjid);
	}
</script>
<style type="text/css">
</style>
<div id="bt_3">
<select name="cless_id" onchange="changexs(this.value)" id="bjid">
		<option>--请选择班级--</option>
		<c:forEach items="${user1}" var="x">
		<option value="${x.id}">${x.name}</option>
		</c:forEach>
</select>
<button type="button" id="a1" style="margin-top: 10px; margin-bottom: 10px;" class="btn btn-primary btn btn-xs btn-lg bbb"><samp class="glyphicon glyphicon-plus"></samp>新增</button>
<table class="table table-bordered table-striped table-hover table-condensed">
	<tbody id="b1">
	<c:forEach items="${str1}" var="a">
	<tr>
		
	</tr>
	</c:forEach>
	</tbody>
</table> 
<div id="id2"></div>
<div id="a2"></div>
</div>
